package com.hzit.payweb.service.impl;

import com.hzit.payweb.model.MchInfo;
import com.hzit.payweb.model.MchPayWay;
import com.hzit.payweb.service.IMchInfoService;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class MchInfoServiceImpl implements IMchInfoService {


    @Override
    public MchInfo queryByMchId(String mchId) {

        //写死数据
        MchInfo mchInfo = new MchInfo();

        mchInfo.setMchId("1000");
        mchInfo.setReqKey("test12345");
        mchInfo.setRespKey("test12345");
        mchInfo.setStatus("1");
        return mchInfo;
    }

    @Override
    public MchPayWay queryByMchIdAndPayWay(String mchId, String payWay) {
        MchPayWay mchPayWay = new MchPayWay();
        mchPayWay.setMchId("1000");
        mchPayWay.setPayWay("alipay");
        mchPayWay.setStatus("1");
        return mchPayWay;
    }
}
